package com.game.thrones.domain.webpage;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.validator.constraints.NotBlank;

import com.game.thrones.domain.IdEntity.IdEntityAuto;



/**
 * 
 * 
 * @Description:轮播图表
 * 
 * 
 */
@Entity
@Table(name = "web_banner")
public class WebBannerDO extends IdEntityAuto implements Serializable {
	private static final long serialVersionUID = 1L;
//	@ApiModelProperty("banner类型 1首页、2game服务、3美研中心、4活动咨询、5新妈分享、6关于game")
	@Column(nullable = false, length = 20)
	private Integer type;

//	@ApiModelProperty("图片key")
	@NotBlank
	@Column(nullable = false, length = 128)
	private String img;
	@Column(  length = 128)
	private String imgSize;
//	@ApiModelProperty("图片路径")
	@Transient
	private String imgUrl;

//	@ApiModelProperty("图片跳转url")
	@Column(  length = 128)
	private String imgLink;

	public void setImgLink(String imgLink) {
		this.imgLink = imgLink;
	}

	public String getImgLink() {
		return imgLink;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getImgSize() {
		return imgSize;
	}

	public void setImgSize(String imgSize) {
		this.imgSize = imgSize;
	}
}
